#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import "Song.h"
#import "Notes.h"
#import "GuitarNotes.h"
@interface SongsSingleton : NSObject



@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;

-(void)fetchData;
+(id)sharedSongsSingleton;
-(Song*)songForIndex:(NSInteger)index;
-(NSInteger)numberOfNotesInAllSongs;
-(NSInteger)numberOfNotesInFavoriteSongs;
-(Song*)favoriteSongForIndex:(NSInteger)index;
-(void)fillCoreData;
-(void)notesFromFile:(NSString*)fileName;
-(BOOL)isEmptyCoreDate;
-(void)deleteCoreData;
-(NSInteger)numberOfRowsAllSongs;
-(NSInteger)numberOfRowsFavoritesSongs;
-(void)addToFavoritesSongWithIndex:(NSInteger) index;
-(void)removeFromFavoritesSongWithIndex:(NSInteger)index;
-(BOOL)isFavoriteSongWithIndex:(NSInteger) index;

@end
